package com.share.pattern;

import java.util.Scanner;

/**
 * 计算器操作类
 * 
 */

public abstract class Operation {
	/**
	 * v0.4面向对象编程
	 * 
	 * 使用封装继承多态方式编写
	 * 
	 * 独立出Operation类
	 * 
	 * 
	 */

	private double mNumberA = 0;
	private double mNumberB = 0;

	public double getmNumberA() {
		return mNumberA;
	}

	public void setmNumberA(double mNumberA) {
		this.mNumberA = mNumberA;
	}

	public double getmNumberB() {
		return mNumberB;
	}

	public void setmNumberB(double mNumberB) {
		this.mNumberB = mNumberB;
	}
	
	public abstract double getResult();

}
